/**
 * 当前房间所有用户模型
 * @constructor
 */
var User = function (uid) {
    this.uid = uid;                         //用户ID
    this.pos = -1;                          //用户的位置
    this.username = "";                     //用户名
    this.headimgurl = "";                   //头像
    this.sex = 0;                           //性别
    this.isready = false;                   //用户准备状态
    this.score = 0;                         //用户当前房间的输赢分
};

User.prototype.getUid = function () {
    return this.uid;
};

User.prototype.setUid = function (value) {
    this.uid = value;
};

User.prototype.getPos = function () {
    return this.pos;
};

User.prototype.setPos = function (value) {
    this.pos = value;
};

User.prototype.getUsername = function () {
    return this.username;
};

User.prototype.setUsername = function (value) {
    this.username = value;
};

User.prototype.getHeadimgurl = function () {
    return this.headimgurl;
};

User.prototype.setHeadimgurl = function (value) {
    this.headimgurl = value;
};

User.prototype.getSex = function () {
    return this.sex;
};

User.prototype.setSex = function (value) {
    this.sex = value;
};

User.prototype.getIsready = function () {
    return this.isready;
};

User.prototype.setIsready = function (value) {
    this.isready = value;
};

User.prototype.getScore = function () {
    return this.score;
};

User.prototype.setScore = function (value) {
    this.score = value;
};

module.exports = User;